package com.ciwong.epaper.bean;

import com.ciwong.mobilelib.bean.BaseBean;

/**
 * Created by young on 2017/1/13.
 * 为乐解决用户在教辅云和习习向上记不住账号的问题
 * 采用新类去解决这个问题
 */
public class UserAccountInfo extends BaseBean{

    private static final long serialVersionUID = -4067547060527472353L;
    /**
     * 账号
     */
    private long userId;

    /**
     * 密码
     */
    private String userPwd;

    /**
     * 头像
     */
    private String avatar;
    /**
     * 是否是手机号登陆
     */
    private Boolean isPhonelogin=false;

    public Boolean getCurrentLogin() {
        return isCurrentLogin;
    }

    public void setCurrentLogin(Boolean currentLogin) {
        isCurrentLogin = currentLogin;
    }

    /**
     * 当前登录标识
     */
    private Boolean isCurrentLogin=false;


    /**
     * 用户手机号
     *
     */
    private String phoneNumber="1234";

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Boolean getPhonelogin() {
        return isPhonelogin;
    }

    public void setPhonelogin(Boolean phonelogin) {
        isPhonelogin = phonelogin;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

//    @Override
//    public boolean equals(Object o)
//    {
//        return getUserId() == ((LoginAccountInfo) o).getUserId();
//    }

    @Override
    public String toString() {
        return "UserAccountInfo{" +
                "userId=" + userId +
                ", userPwd='" + userPwd + '\'' +
                ", avatar='" + avatar + '\'' +
                ", isPhonelogin=" + isPhonelogin +
                ", isCurrentLogin=" + isCurrentLogin +
                ", phoneNumber='" + phoneNumber + '\'' +
                '}';
    }
}
